package com.frinder.base.db;

import com.frinder.base.global.BaseException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.retry.annotation.Recover;

/**
 * @author frinder
 * @date 2018/9/14
 * @Description: 重试基础类
 */
@Slf4j
public abstract class AbstractSyncRetryService {

    @Recover
    public boolean recover(BaseException e) {
        log.error(e.getMessage(), e);
        return false;
    }

}
